<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('指派订单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-order-add" th:object="${scmOrder}">

            <div class="form-group">
                <label class="col-sm-3 control-label">OMS单号：</label>
                <div class="col-sm-8">
                    <input   th:field="*{id}" name="id"  type="hidden">

                    <input   th:field="*{orderid}" name="orderid" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">待分配用户：</label>
                <div id="element" >
                    <div class="col-sm-8">
                        <select name="userId" class=" form-control m-b">
                            <th:block th:each="option: ${waitZhipaiList}">
                                <option th:value="${option.userId}">
                                    [[${option.desc}]]
                                </option>
                            </th:block>
                        </select>

                    </div>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: jquery-cxselect-js" />

    <script th:inline="javascript">

        var prefix = ctx + "scm/order"
        $("#form-order-add").validate({
            focusCleanup: true
        });



        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/submitZhipai", $('#form-order-add').serialize());
            }
        }
    </script>
</body>
</html>
